190 LOCATE11,22:PRINT" -A GAME PROGRAM FROM CASEY ROCHE-":LOCATE12,25:PRINT" *****************************":LOCATE13,27:PRINT"FOR THE IBM PERSONAL COMPUTER":LOCATE14,28:PRINT" (C) Copyright 1982":LOCATE4,15:COLOR15,0
540 COLOR 7,0:CLS:PRINT"Later.":FOR I%=1 TO 15:A$=INKEY$:NEXT I%:GOSUB 11500:END
580 CLS:LOCATE12,20:PRINT"TYPE C TO PLAY AGAINST THE COMPUTER OR
610 LOCATE13,23:PRINT"P TO PLAY AGAINST ANOTHER PERSON":PLR$=INPUT$(1):L$=CHR$(205):FORD=1TO8:FORL=1TO8:BRD(D,L)=0:STRAT(D,L)=0:NEXT:NEXT:Y$="LINELINELINE":M$="CSRLINCSRLINCSRLIN":BRD(4,4)=2:BRD(5,5)=2:BRD(4,5)=1:BRD(5,4)=1
1450 CLS:PLAY"MF":LOCATE11,19:PRINT"I WILL NOW FLIP A COIN TO SEE WHO GOES FIRST":FORV=1TO12:LOCATE13,39:PRINT"CSRLINCSRLINCSRLIN":SOUNDTA,2:LOCATE13,39:PRINT"LINELINELINE":SOUNDTH,4:NEXT:DEFSEG=&H40:RANDOMIZEPEEK(&H6C):SOUNDTH,4
1590 FLIP=INT(2*RND+1):IFFLIP=2THEN1660
1610 LOCATE13,26:PRINT"LINELINELINE WON THE TOSS, "+IN1$+" GOES FIRST":FORV=1TO2500:NEXT:GOTO1700
1660 LOCATE13,23:PRINT"CSRLINCSRLINCSRLIN WON THE TOSS, "+IN2$+" WILL GO FIRST":FORV=1TO4500:NEXT
1780 COLOR15,0,0:CLS:COLOR0,15:LOCATE25,8:PRINT" use the cursor control keys to select a move, depress F1 to quit ":COLOR15,0:LOCATE24,1:PRINTSTRING$(80," "):LOCATE1,1:COLOR15,0:PRINT" DEFSNGCHAMELEONDEFDBL
1890 PRINT"KEYTHENTHENTHEN<0xCB!>THENTHENTHEN<0xCB!>THENTHENTHEN<0xCB!>THENTHENTHEN<0xCB!>THENTHENTHEN<0xCB!>THENTHENTHEN<0xCB!>THENTHENTHEN<0xCB!>THENTHENTHENCLOSE":PRINT"OPEN OPEN OPEN OPEN OPEN OPEN OPEN OPEN OPEN1":PRINT"TOTHENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENRANDOMIZE":PRINT"OPEN OPEN OPEN OPEN OPEN OPEN OPEN OPEN OPEN2":PRINT"TOTHENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENRANDOMIZE
1940 PRINT"OPEN OPEN OPEN OPEN OPEN OPEN OPEN OPEN OPEN3 SCORE BOARD":PRINT"TOTHENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENRANDOMIZE KEYTHENTHENTHENTHEN<0xCB!>THENTHENTHENTHENCLOSE":PRINT"OPEN OPEN OPEN OPENCSRLINCSRLINCSRLINOPENLINELINELINEOPEN OPEN OPEN OPEN4 <UNK! {0001}>OPEN 2 OPEN 2 OPEN<UNK! {0002}>
1970 PRINT"TOTHENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENRANDOMIZE SCREENTHENTHENTHENTHENLOCATETHENTHENTHENTHENLOAD":PRINT"OPEN OPEN OPEN OPENLINELINELINEOPENCSRLINCSRLINCSRLINOPEN OPEN OPEN OPEN5 LINELINELINE CSRLINCSRLINCSRLIN":PRINT"TOTHENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENRANDOMIZE "+IN1$+" "+IN2$
2000 PRINT"OPEN OPEN OPEN OPEN OPEN OPEN OPEN OPEN OPEN6":PRINT"TOTHENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENRANDOMIZE":PRINT"OPEN OPEN OPEN OPEN OPEN OPEN OPEN OPEN OPEN7":PRINT"TOTHENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENTAB(THENTHENTHENRANDOMIZE":PRINT"OPEN OPEN OPEN OPEN OPEN OPEN OPEN OPEN OPEN8":PRINT"SCREENTHENTHENTHENLOCATETHENTHENTHENLOCATETHENTHENTHENLOCATETHENTHENTHENLOCATETHENTHENTHENLOCATETHENTHENTHENLOCATETHENTHENTHENLOCATETHENTHENTHENLOAD
2060 PRINT" 1 2 3 4 5 6 7 8":COLOR0,15:LOCATE20,2:PRINT" C O L U M N ":FORL=3TO17:LOCATEL,37:PRINT" ":NEXT:LOCATE8,37:PRINT"R":LOCATE10,37:PRINT"O":LOCATE12,37:PRINT"W":COLOR7,0:FORL=3TO17:LOCATEL,38
2610 COLOR15,0:LOCATE18,43:PRINT"ALL MOVES ARE DISPLAYED AS ROW,COLUMN":COLOR7,0:IFCLR=1GOTO2710
2660 LOCATE19,37:PRINT"PRESS ENTER FOR "+IN1$+"'S MOVE -> CSRLINCSRLINCSRLINCSRLINCSRLIN "+Y$:LOCATE20,37:PRINT"PRESS ENTER FOR "+IN2$+"'S MOVE -> CSRLINCSRLINCSRLINCSRLINCSRLIN "+M$:GOTO2750
2710 LOCATE19,43:PRINT"PRESS ENTER FOR MOVE -> CSRLINCSRLINCSRLINCSRLINCSRLIN "+Y$:LOCATE20,43:PRINT"THE COMPUTER'S MOVE IS -> CSRLINCSRLINCSRLINCSRLINCSRLIN "+M$
3480 COLOR18,0:LOCATE21,68:PRINT"ILLEGAL MOVE":COLOR4,0:SOUNDTH,9:LOCATEX*2+1,Y*4-1:PRINT" ":LOCATE21,1:PRINT" YOU MUST FLIP SOMETHING":FORTR=1TO6000:NEXT:GOTO2800
5070 COLOR18,0:LOCATE21,69:PRINT"SORRY":COLOR4,0:LOCATE21,1:PRINT" YOU HAVE NOTHING TO FLIP ":FORT=1TO6000:NEXT:SOUNDTH,9:GOTO5240
5170 SOUNDTA,18:COLOR18,0:LOCATE21,1:PRINT" THE COMPUTER HAS NO MOVES":FORGI=1TO6000:NEXT:COLOR4,0
5240 DEC=DEC+1:IFDEC>1GOTO5380: ELSE4510
5260 COLOR31,0:LOCATE21,69:PRINT"SORRY":COLOR15,0:LOCATE21,1:PRINT" YOU HAVE NOTHING TO FLIP ":SOUNDTH,9:FORZ=1TO4000:NEXT:DEC=DEC+1:IFDEC>1THEN5380 ELSE2820
6400 OPEN "BEST" FOR INPUT AS #1:INPUT#1,TOPS,REC$:CLOSE#1:IFLVL=3THEN6440 ELSE6450
6440 IFTOPS<(YSCOR-MSCOR)ANDLVL=3THEN6570
6450 CLS:LOCATE10,10:PRINT"THE BEST EXPERT CHAMELEON PLAYER IS:":LOCATE12,10:PRINTREC$:FORI=1TO6000:NEXT:IFAN$="Y"ORAN$="y"THEN510
6530 COLOR7,0:CLS:PRINT"Later.":END
6570 CLS:COLOR31,0:LOCATE8,10:PRINT"C O N G R A T U L A T I O N S ! !":COLOR4,0:IFSND$="y"THENPLAY"C8E8G8C8E8G8C8E8G8G16G16G16G16G
6630 LOCATE10,5:PRINT"THROUGH LUCK, SKILL OR BOTH YOU HAVE BROKEN THE ":LOCATE11,5:PRINT"ALL-TIME RECORD AGAINST ME AT THE EXPERT LEVEL.":LOCATE12,5:PRINT" THE PREVIOUS RECORD-HOLDER WAS:":LOCATE14,12:PRINTREC$:OPEN "BEST" FOR OUTPUT AS #1
6720 NUM=YSCOR-MSCOR:PRINT#1,NUM:LOCATE16,5:INPUT"WHAT'S YOUR NAME CHAMP";NAM$:LOCATE17,5:INPUT"WHAT IS THE DATE OF THIS SPLENDID OCCASION";DT$:PRINT#1,NAM$+" "+STR$(YSCOR)+" TO "+STR$(MSCOR)+" ON "+DT$:LOCATE19,5
6800 PRINT"THANK YOU, YOUR NAME WILL BE KEPT FOR POSTERITY.":CLOSE#1:FORJ=1TO2500:NEXT:IFAN$="Y"ORAN$="y"THEN510
7060 CLS:LOCATE12,20:PRINT"PLEASE TYPE IN YOUR INITIALS (3 LETTERS ONLY)":LOCATE13,20:INPUT" THEN PRESS ENTER";IN1$:IN2$="PC ":IN1$=MID$(IN1$+" ",1,3):RETURN
7140 CLS:LOCATE12,20:PRINT"PLAYER ONE (LINELINELINE) PLEASE TYPE IN YOUR":LOCATE13,20:INPUT" INITIALS (3 LETTERS ONLY)";IN1$:IN1$=MID$(IN1$+" ",1,3):CLS:LOCATE12,20:PRINT"PLAYER TWO (CSRLINCSRLINCSRLIN) PLEASE TYPE IN YOUR":LOCATE13,20